package com.youdoneed.community.forum.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.youdoneed.community.forum.entity.Forumuserattentionanotherrel;
@Mapper
public interface ForumuserattentionanotherrelMapper {
    int deleteByPrimaryKey(String forumUserAttentionAnotherRelId);

    int insert(Forumuserattentionanotherrel record);

    int insertSelective(Forumuserattentionanotherrel record);

    Forumuserattentionanotherrel selectByPrimaryKey(String forumUserAttentionAnotherRelId);

    int updateByPrimaryKeySelective(Forumuserattentionanotherrel record);

    int updateByPrimaryKey(Forumuserattentionanotherrel record);
    
    int countMyFollower(String userId);
    
    List<Forumuserattentionanotherrel> selectParam_page(Forumuserattentionanotherrel record);
    
    int save(Forumuserattentionanotherrel record);
    
    Forumuserattentionanotherrel selectAttentionList(Forumuserattentionanotherrel record);
    
    List<Forumuserattentionanotherrel> selectRecommendAttention(String userId);

    List<String> getMyAttentionUsers(String userId);

    /**
     * 判断是否关注
     */
    Integer isAttention(String userId, String attentionedUserId);
}